home *** CD-ROM | disk | FTP | other *** search
/ Speccy ClassiX 1998 / Speccy ClassiX 98.iso / amiga_system / tools / ncomm3.0 / scripts / rxread1.ncomm < prev    next >
Encoding:
Text File  |  1978-05-22  |  473 b   |  12 lines

  1. /* Demonstrates a way to read serial chars with immediate response */
  2. /* This scripts sends all data that is received within NComm       */
  3. /* to the current CLI window. Must be executed with the RX command */
  4.  
  5. options results /* Turn on result codes */
  6.  
  7. do forever /* for (;;) */
  8.    address 'ncomm' wait /* Wait for anything, return current line */
  9.    if RC == 20 then exit /* Exit if user selected Quit NComm */
  10.    say result           /* Write line to CLI window */
  11. end
  12.